package com.eastfair.auth.dto;

import com.eastfair.auth.enumeration.RoleRoleTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 实体类
 *
 * </p>
 *
 * @author ligang
 * @since 2021-07-23
 */
@Data
@ApiModel(value = "RegisterDTO", description = "注册服务商账号")
public class RegisterDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    //校验标识
    public interface VerifyRegisterUser {}

    /**
     * 角色实体
     */
    @NotNull(groups = {RegisterDTO.VerifyRegisterUser.class})
    private  RoleDTO roleDTO ;

    /**
     * 组织实体
     */
    @NotNull(groups = {RegisterDTO.VerifyRegisterUser.class})
    private OrganizationDTO organizationDTO;

    /**
     * 团队ID 也就是服务商id
     */
    @NotNull(groups = {RegisterDTO.VerifyRegisterUser.class})
    private Long teamId;

    /**
     * 用户信息
     */
    @NotNull(groups = {RegisterDTO.VerifyRegisterUser.class})
    private UserAccountDto userAccountDto;

}
